//
//  NQBarGraph.h
//  NQBarGraphExample
//
//  Created by AhmedElnaqah on 6/2/13.
//  Copyright (c) 2013 elnaqah. All rights reserved.
//
//The MIT License (MIT)
//
//Copyright (c) 2013 ahmed elnaqah
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.


#import <UIKit/UIKit.h>

@interface NQBarGraph : UIView
@property float spaceBetweenBars;//各个柱子之间的间距
@property float barWidth;//各个柱子的宽度
@property (strong) UIColor * linesColor;//线条的颜色
@property (strong) UIColor * numbersColor;////左侧竖直阿拉伯字母的颜色
@property (strong) UIColor * numbersTextColor;//左侧竖直阿拉伯lable文本的颜色
@property (strong) UIColor * dateColor;////底部Day,Month的颜色
@property (strong) UIColor * barColor;//柱子的颜色
@property (nonatomic,strong) NSArray * dataSource;//数据数组，存放各个柱子的数据
@property (strong) UIColor * textColor;//左侧tasks和底部date的文本颜色
@property (strong) UIColor * dottedLineColor;//内部虚线的颜色
@property (strong) UIColor * barOuterLine;//各个柱子四周边缘的颜色
@property int numberOfVerticalElements;//竖直节点的数量
@property (strong) NSString * datesBarText;//日期文本文字
@property (strong) NSString * tasksBarText;//task文本文字
@property (strong) NSString * fontName;
@property(nonatomic,strong)UIColor*bottomDateColor;
@property CGFloat dateFontSize;//底部date的字体
@property CGFloat titlesFontSize;////左侧task的字体
@property(nonatomic,strong)NSArray*ylables;
/**  //用来记录是AQI还是PM10等 0为AQI 1为pm10 2为PM2.5*/
@property(nonatomic,assign)NSInteger TTag;
@property(nonatomic,assign)CGRect rect;
@property(nonatomic,weak)UIButton*btn;
/**  点击单个柱弹出的View */
@property (nonatomic,weak) UIView *outView;
@property(nonatomic,strong)NSMutableArray*mut;
@property(nonatomic,strong)NSMutableArray*btnArray;
@property(nonatomic,strong)NSMutableArray*lableArray;
@end
